#pragma once

#include <QLabel>
#include <QMouseEvent>
#include <QWidget>

class ClickableLabel : public QLabel
{
    Q_OBJECT
public:
    explicit ClickableLabel(QWidget *parent = nullptr);

signals:
    void clicked(); // 自定义点击信号

protected:
    // 重写鼠标释放事件[3,4](@ref)
    virtual void mouseReleaseEvent(QMouseEvent *event);
};
